package com.itheima.manager;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.domain.OmsCompanyAddress;
import com.itheima.domain.OmsOrderReturnApply;
import com.itheima.interceptor.AdminHolder;
import com.itheima.service.db.OmsOrderReturnApplyService;
import com.itheima.vo.PageBeanVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class OmsOrderReturnApplyManager {
    @DubboReference
    private OmsOrderReturnApplyService omsOrderReturnApplyService;

    public void delete(List<Integer> ids) {
        omsOrderReturnApplyService.delete(ids);
    }


    public PageBeanVo getList(Integer pageNum, Integer pageSize, String createTime, String handleMan, String handleTime, Integer id, String receiverKeyword, Integer status) {
        return omsOrderReturnApplyService.getList(pageNum,pageSize,createTime,handleMan,handleTime,id,receiverKeyword,status);
    }
    // 退货详情  当用户点击详情,查询所有该id所有数据
    public OmsOrderReturnApply particulars(Integer id) {

        return omsOrderReturnApplyService.particulars(id);
    }


    public List<OmsCompanyAddress> companyAddressList() {

        return omsOrderReturnApplyService.companyAddressList();
    }

    public void updateStatus(Integer id, OmsOrderReturnApply omsOrderReturnApply) {
        omsOrderReturnApplyService.updateStatus(id,omsOrderReturnApply);
    }
}
